#encoding=utf-	8
'''
Created on 2014-12-9

@author: cooler
'''
import sys, logging, os, os.path
from flask import Flask
from flask.ext.restful import reqparse, abort, Api, Resource

from todo import Todo,TodoList

DEFAULT_APP_NAME = 'SUFACE'


def create_app():
	app = Flask(DEFAULT_APP_NAME)
	api = Api(app)
	## Actually setup the Api resource routing here
	##
	api.add_resource(TodoList, '/todos','/','/hello')
	api.add_resource(Todo, '/todos/<todo_id>',endpoint='todo_ep')
	return app